package com.webase.web.action;

import java.util.List;

import com.webase.model.User;
import com.webase.service.UserService;

public class UserAction {
	UserService userService = null;

	List<User> userList = null;

	/**
	 * @return the userList
	 */
	public List<User> getUserList() {
		return userList;
	}

	/**
	 * @param userList
	 *            the userList to set
	 */
	public void setUserList(List<User> userList) {
		this.userList = userList;
	}

	/**
	 * @return the userService
	 */
	public UserService getUserService() {
		return userService;
	}

	/**
	 * @param userService
	 *            the userService to set
	 */
	public void setUserService(UserService userService) {
		this.userService = userService;
	}

	public String execute() {
		userList = userService.list();
		return "list";
	}
}
